package ddd

import (
	"gitee.com/thingple/saturn/cmd/dashboard/ddd/config"
	"gitee.com/thingple/saturn/cmd/dashboard/ddd/data"
	"gitee.com/thingple/saturn/cmd/dashboard/ddd/websocket"
	"github.com/lishimeng/app-starter/server"
)

func Router(root server.Router) {

	api := root.Path("/api")

	websocket.Router(api.Path("/ws"))
	config.Router(api.Path("/config"))

	data.Router(api.Path("/data"))
}
